package robotutils.planning;

public class KeyQueueStatted<State> extends KeyQueue<State> {
	private static final long serialVersionUID = 1L;
	
	long amountOfElements = 0;
	long maxAmountOfElements = 0;
	
	public void insert(State s, Key k) {
    	amountOfElements++;
    	if (maxAmountOfElements < amountOfElements) {
    		maxAmountOfElements = amountOfElements;
    	}
    	super.insert(s, k);
    }
	
	public void remove(State s) {
    	amountOfElements--;
        super.remove(s);
    }
}
